﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Wizard.Controls
{
    public partial class BoldLabel : Label
    {
        public BoldLabel()
        {
            InitializeComponent();
        }

        private void BoldLabel_Paint(object sender, PaintEventArgs e)
        {
            e.Graphics.FillRectangle(new SolidBrush(this.BackColor), 0, 0, this.Size.Width, this.Size.Height);
            TextRenderer.DrawText(
                e.Graphics,
                this.Text,
                this.Font,
                new Point(this.Padding.Left, this.Padding.Top),
                this.ForeColor
                );
        }
    }
}
